// 导入axios封装
import $http from '../common/http'
export default {
    COURSELIST(context, type) {
        $http.get('api/course?type=' + type)
            .then(
                res => {
                    context.commit('COURSELIST', res.data)
                }
            )
    }
}